fixed problem with non int value for rooms_len