Hey, I really like this maze generator

Thank you for sharing.
I have no question, I'm having problem with making level from ".txt" file:
5
5
#####
#S..#
#...#
#...#
#####
Problem is, that generated level doesn't have some of the walls from the downer right side.
I can post a screen if you want me to, may be I've made it wrong in ".txt" file.