Fixed pull up/down bug