fixed forgotten part of custom bed code