fixing bed conversion issue