Fixed bug in prior fix