fix bug with proper motion error